package cn.zn.modules.money.cur.entity.vo;

import cn.zn.modules.money.enums.MoneyTypeEnum;
import lombok.Data;

@Data
public class MoneySumVO {
    private String moneyTypeCode;
    private String moneyTypeName;
    private Double totalMoney;
    private Double freezeMoney;
    private Double useMoney;

    public String getMoneyTypeName() {
        MoneyTypeEnum moneyTypeEnum = MoneyTypeEnum.findByCode(moneyTypeCode);
        return moneyTypeEnum != null ? moneyTypeEnum.getName() : "";
    }
}
